package OneList;

public class test {
    public static void main(String[] args) {
        MyList list=new MyList();
        list.addLast(1);
        list.addLast(1);
        list.addLast(1);
        list.addLast(2);
        list.addLast(3);
        list.addLast(4);
        list.addLast(5);
        list.display();
        list.addFirst(0);
        list.display();
        list.addIndex(0,10);
        list.display();
        list.addIndex(list.size(), 99);
        list.display();
        list.addIndex(2,100);
        list.display();
        System.out.println(list.size());
        list.remove(100);
        list.display();
        list.remove(10);
        list.display();
        System.out.println(list.size());
        list.remove(99);
        list.display();
        list.removeAllKey(1);
        list.display();
        System.out.println(list.size());
        list.clear();
        list.display();
    }

}
